package com.atsugon.demo02.service;


import com.atsugon.demo02.bean.Alert;
import com.atsugon.demo02.bean.AlertCount;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AlertService extends IService<Alert> {
    //获取某天的报警次数

    Integer DayselectByDate(String date);

    //获取某周的报警次数

    Integer WeekselectByDate(String date);

    //获取某月的报警次数

    Integer MonthselectByDate(String date);

    //获取某年的报警次数

    Integer YearselectByDate(String date);

    String InsertById(String rowname,Integer id);

    String DeleteById(Integer id);

    String UpdateStatus(Integer id,Integer status);

    List<AlertCount> xmlDayselectByDate();
    List<AlertCount> xmlDayselectByDateLimitPage(Long pfrom,Long pto);
    //按周获取报警次数
    List<AlertCount>  xmlDayselectByWeek();
    List<AlertCount> xmlDayselectByWeekLimitPage(Long pfrom,Long pto);
    //按月获取报警次数
    List<AlertCount>  xmlDayselectByMonth();
    List<AlertCount> xmlDayselectByMonthLimitPage(Long pfrom,Long pto);
    //按年获取报警次数
    List<AlertCount>  xmlDayselectByYear();
    List<AlertCount> xmlDayselectByYearLimitPage(Long pfrom,Long pto);
}
